Re-exports

pub use base::DecodePacket;
pub use base::EncodePacket;
pub use base::QoS;
pub use byte_array::ByteArray;
pub use error::DecodeError;
pub use error::EncodeError;
pub use topic::PubTopic;
pub use topic::SubTopic;
pub use topic::SubscribePattern;
pub use topic::Topic;
pub use topic::TopicError;
pub use topic::TopicPart;

Modules

Structs

Binary Data is represented by a Two Byte Integer length which indicates the number of data bytes, followed by that number of bytes.

BoolData represents one byte value with two states.

Text fields within the MQTT Control Packets described later are encoded as UTF-8 strings. UTF-8 RFC3629 is an efficient encoding of Unicode Unicode characters that optimizes the encoding of ASCII characters in support of text-based communications.

A UTF-8 String Pair consists of two UTF-8 Encoded Strings.

U16Data represents a two bytes integer.

U32Data represents a four bytes integer.

The Variable Byte Integer is encoded using an encoding scheme which uses a single byte for values up to 127.

Enums

Current version of MQTT protocol can be:

Type Definitions

Packet identifier